<template>
  <div class="view">
    <div v-if="!show" style="color: white;width: 200px;margin: 200px auto;text-align: center">
      <h2>功能未上线</h2>
      <el-button type="text" @click="()=>{this.show=true}">静态页面预览</el-button>
    </div>
    <div v-if="show" class="Box">
      <div class="topBox">
        <div class="topBtn">修改</div>
        <div class="topBtn">删除</div>
        <div class="topBtn">导入</div>
        <div class="topBtn">导出</div>
      </div>
      <div class="content">
        <table class="table" >
          <tr class="tableTitle">
            <td>活动名称</td>
            <td>文件名称</td>
            <td>职称等级</td>
            <td>是否必须</td>
            <td>查看详情</td>
          </tr>
          <tr>
            <td>CAssss</td>
            <td>二级建筑师</td>
            <td>二级</td>
            <td>是</td>
            <td>@</td>
          </tr>
          <tr>
            <td>CAssss</td>
            <td>二级建筑师</td>
            <td>二级</td>
            <td>是</td>
            <td>@</td>
          </tr>
        </table>

        <div class="t_paging">
          <el-pagination
            background
            layout="prev, pager, next"
            :page-count="pageNum"
            @current-change="pageChange">
          </el-pagination>
        </div>

      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ReportFile",
  methods: {
    pageChange(pageIndex){
      console.log(pageIndex)
    },
  },
  data() {
    return {
      show: false,
      //总页数
      pageNum: 5,
    }
  }
}
</script>

<style src="../css/pageSplit.css" scoped></style>
<style scoped>

.tableTitle>td{
  border-top: none!important;
  border-bottom: none!important;
  height: 40px!important;
  background-color: #3066E3;
  font-weight: 600;
  font-size: 19px;
}
.table{
  width: 100%;
  text-align: center;
  color: white;
  border-collapse: collapse
}
.table>tr>td{
  height: 60px;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
}
.table>tr:nth-child(2)>td{
  border-top: none!important;
}
.view{
  width: 100%;
  height: 100%;
}
.topBox{
  display: flex;
}
.topBtn{
  color: white;
  border: 1px solid white;
  height: 30px;
  line-height: 30px;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 3px;
  margin-right: 20px;
  margin-top: 25px;
  margin-bottom: 25px;
}
.Box{
  margin-left: 30px;
  margin-right: 30px;
  width: 1140px;
}
.content{
  position: relative;
  padding: 20px;
  height: 650px;
  background: rgba(22, 48, 108, 0.4);
  border-radius: 10px;
}
</style>
